package cn.hdu.liang.ch1;

public class Apple {
    private int weight = 10;
    private String color = "default";

    public Apple(int weight, String color) {
        this.weight = weight;
        this.color = color;
    }

    public Apple() {

    }

    public Apple(Integer integer) {
        this.weight = integer;
    }

    public Apple(String color, Integer weight) {
        this.color = color;
        this.weight = weight;
    }


    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String toString() {
        return "Apple{" +
                "color='" + color + '\'' +
                ", weight=" + weight +
                '}';
    }
}